package com.bjsxt.car.users.pojo;

public class CClient
{
	private int id;
	private String name;
	private int gender;
	private String phone;
	private String password;
	private String profession;
	private String idcard;
	private String address;
	public int getId()
	{
		return id;
	}
	public void setId(int id)
	{
		this.id = id;
	}
	public String getName()
	{
		return name;
	}
	public void setName(String name)
	{
		this.name = name;
	}
	public int getGender()
	{
		return gender;
	}
	public void setGender(int gender)
	{
		this.gender = gender;
	}
	public String getPhone()
	{
		return phone;
	}
	public void setPhone(String phone)
	{
		this.phone = phone;
	}
	public String getPassword()
	{
		return password;
	}
	public void setPassword(String password)
	{
		this.password = password;
	}
	public String getProfession()
	{
		return profession;
	}
	public void setProfession(String profession)
	{
		this.profession = profession;
	}
	public String getIdcard()
	{
		return idcard;
	}
	public void setIdcard(String idcard)
	{
		this.idcard = idcard;
	}
	public String getAddress()
	{
		return address;
	}
	public void setAddress(String address)
	{
		this.address = address;
	}
	@Override
	public int hashCode()
	{
		final int prime = 31;
		int result = 1;
		result = prime * result + ((address == null) ? 0 : address.hashCode());
		result = prime * result + gender;
		result = prime * result + id;
		result = prime * result + ((idcard == null) ? 0 : idcard.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		result = prime * result + ((password == null) ? 0 : password.hashCode());
		result = prime * result + ((phone == null) ? 0 : phone.hashCode());
		result = prime * result + ((profession == null) ? 0 : profession.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj)
	{
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CClient other = (CClient) obj;
		if (address == null)
		{
			if (other.address != null)
				return false;
		} else if (!address.equals(other.address))
			return false;
		if (gender != other.gender)
			return false;
		if (id != other.id)
			return false;
		if (idcard == null)
		{
			if (other.idcard != null)
				return false;
		} else if (!idcard.equals(other.idcard))
			return false;
		if (name == null)
		{
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		if (password == null)
		{
			if (other.password != null)
				return false;
		} else if (!password.equals(other.password))
			return false;
		if (phone == null)
		{
			if (other.phone != null)
				return false;
		} else if (!phone.equals(other.phone))
			return false;
		if (profession == null)
		{
			if (other.profession != null)
				return false;
		} else if (!profession.equals(other.profession))
			return false;
		return true;
	}
	@Override
	public String toString()
	{
		return "CClient [id=" + id + ", name=" + name + ", gender=" + gender + ", phone=" + phone + ", password="
				+ password + ", profession=" + profession + ", idcard=" + idcard + ", address=" + address + "]";
	}
	public CClient(int id, String name, int gender, String phone, String password, String profession, String idcard,
			String address)
	{
		super();
		this.id = id;
		this.name = name;
		this.gender = gender;
		this.phone = phone;
		this.password = password;
		this.profession = profession;
		this.idcard = idcard;
		this.address = address;
	}
	public CClient()
	{
		super();
		// TODO Auto-generated constructor stub
	}

	
}
